package com.xkk.service;

import com.xkk.mapper.RegisterMapper;
import com.xkk.pojo.Employee;
import com.xkk.pojo.Register;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class RegisterServiceImpl implements RegisterService {


    private RegisterService registerService;



    public RegisterServiceImpl(RegisterService registerService) {
        this.registerService = registerService;
    }

    @Override
    public int addregister(Register register) {
        return registerService.addregister(register);
    }

    @Override
    public List<Register> selectAllregister() {
        return registerService.selectAllregister();
    }

    @Override
    public int deleteregister(int id) {
        return registerService.deleteregister(id);
    }

    @Override
    public Register queryByUserName(String username) {
        return registerService.queryByUserName(username);
    }


}
